// No Thermal Weapon Script

_layer = 85125;
_block = false;

_restrictedWeapons = ["AK_74",
"AK_74_GL",
"AK_74_GL_kobra",
"AK_47_M",
"AK_47_S",
"AKS_74",
"AKS_74_GOSHAWK",
"AKS_74_kobra",
"AKS_74_NSPU",
"AKS_74_pso",
"AKS_74_U",
"FN_FAL",
"FN_FAL_ANPVS4",
"G36A_camo",
"G36C_camo",
"G36_C_SD_camo",
"G36K_camo",
"LeeEnfield",
"M14_EP1",
"M16A2",
"M4A1",
"M4A3_RCO_GL_EP1",
"M4A3_CCO_EP1",
"SCAR_L_CQC_CCO_SD",
"SCAR_L_CQC",
"SCAR_L_CQC_Holo",
"SCAR_L_CQC_EGLM_Holo",
"SCAR_L_STD_EGLM_RCO",
"SCAR_L_STD_EGLM_TWS",
"SCAR_L_STD_HOLO",
"SCAR_L_STD_Mk4CQT",
"SCAR_H_CQC_CCO",
"SCAR_H_CQC_CCO_SD",
"SCAR_H_STD_EGLM_Spect",
"SCAR_H_LNG_Sniper",
"SCAR_H_LNG_Sniper_SD",
"SCAR_H_STD_TWS_SD",
"Sa58P_EP1",
"Sa58V_EP1",
"Sa58V_RCO_EP1",
"Sa58V_CCO_EP1",
"MG36_camo",
"m240_scoped_EP1",
"M249_m145_EP1",
"M249_TWS_EP1",
"M60A4_EP1",
"Mk_48_DES_EP1",
"PK",
"RPK_74",
"KSVK",
"m107",
"m107_TWS_EP1",
"M110_NVG_EP1",
"M110_TWS_EP1",
"M24_des_EP1",
"SVD_des_EP1",
"SVD",
"SVD_NSPU_EP1",
"glock17_EP1",
"Colt1911",
"M9",
"M9SD",
"Makarov",
"MakarovSD",
"revolver_EP1",
"revolver_gold_EP1",
"Sa61_EP1",
"UZI_EP1",
"UZI_SD_EP1",
"Javelin",
"Stinger",
"Igla",
"M136",
"M47Launcher_EP1",
"MAAWS",
"MetisLauncher",
"RPG7V",
"RPG18",
"Strela",
"Mk13_EP1",
"M32_EP1",
"M79_EP1",
"HandGrenade",
"HandGrenade_West",
"HandGrenade_East",
"SmokeShell",
"SmokeShellRed",
"SmokeShellGreen",
"SmokeShellYellow",
"SmokeShellOrange",
"SmokeShellPurple",
"SmokeShellBlue",
"TimeBomb",
"PipeBomb",
"Mine",
"MineE",
"BAF_L110A1_Aim ",
"BAF_AS50_scoped ",
"BAF_AS50_TWS",
"BAF_L7A2_GPMG",
"BAF_L85A2_RIS_CWS",
"BAF_L85A2_RIS_ACOG",
"BAF_L85A2_RIS_Holo",
"BAF_L85A2_RIS_SUSAT",
"BAF_L85A2_UGL_ACOG",
"BAF_L85A2_UGL_Holo",
"BAF_L85A2_UGL_SUSAT",
"BAF_L86A2_ACOG",
"BAF_LRR_scoped",
"BAF_LRR_scoped_W",
"BAF_NLAW_Launcher",
"BAF_L109A1_HE",
"m8_tws_sd",
"m8_tws",
"m8_holo_sd",
"m8_compact_pmc",
"m8_carbine_pmc",
"AA12_PMC",
"HandGrenade_Stone",
"Binocular_Vector",
"Binocular",
"Laserdesignator",
"NVGoggles",
"IRStrobe",
"AK_107_kobra",
"AK_107_pso",
"AK_107_GL_kobra",
"AK_107_GL_pso",
"AKS_GOLD",
"AKS_74_UN_kobra",
"bizon",
"bizon_silenced",
"G36a",
"G36C",
"G36K",
"G36A_camo",
"G36_C_SD_eotech",
"M16A2GL",
"m16a4",
"M16A4_GL",
"M4A1_Aim",
"M4A1_Aim_camo",
"M4A1_Aim_SD_camo",
"M4A1_HWS_GL",
"M4A1_HWS_GL_camo",
"M4A1_HWS_GL_SD_Camo",
"M4A1_RCO_GL",
"MG36",
"MG36_Large",
"MG36_camo_Large",
"MP5A5",
"MP5SD",
"Saiga12K",
"PMC_AS50_scoped",
"PMC_AS50_TWS",
"DMR",
"huntingrifle",
"M24",
"M16A4_ACG_GL",
"m16a4_acg",
"M40A3",
"M8_carbine",
"M8_carbineGL",
"M8_SAW",
"M8_SAW_Large",
"M8_combat",
"M8_sharpshooter",
"M4SPR",
"SVD_CAMO",
"VSS_vintorez",
"MK_48",
"Pecheneg",
"M249_EP1",
"M249",
"RPK_74_Large",
"BAF_NLAW_Launcher",
"RPG7V",
"RPG18",
"SMAW",
"IR_Strobe_Marker"];

_restrictedWeapons2 = ["ItemGPS"];

while {true} do
{
		if   ({player hasWeapon _x} count _restrictedWeapons2 > 0) then
        {
			player removeweapon "ItemGPS";
			player globalChat "GPS REMOVED!";
                       // _layer cutText ["You cannot use this weapon. Open Gear Menu & Drop Please. Much Obliged!", "BLACK OUT"];
        };
        if   ({player hasWeapon _x} count _restrictedWeapons > 0) then
        {
			removeAllWeapons player;
			player addWeapon "I44_P08";
			player addMagazine "I44_8rd_9x19_Ball_P08";
			player addMagazine "I44_8rd_9x19_Ball_P08";
			player globalChat "Used a not allowed weapon!!!!!!";
                       // _layer cutText ["You cannot use this weapon. Open Gear Menu & Drop Please. Much Obliged!", "BLACK OUT"];
        };
        sleep 1;
}; 
_layer = 85125;
_block = false;